(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/script/Robot.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'c92f5koXyxLvbc1woQmrX5e', 'Robot', __filename);
// script/Robot.js

"use strict";

/**
 * 跟踪弹道具
 */
cc.Class({
    extends: cc.Component,

    properties: {},

    // onLoad () {},

    start: function start() {},


    onBeginContact: function onBeginContact(contact, selfCollider, otherCollider) {
        if (otherCollider.tag === cc.vv.TAG.WALL || otherCollider.tag === cc.vv.TAG.HERO) {
            selfCollider.node.getComponent(cc.Animation).play("mineBoom");
        }
    },
    onCoinBoomFinished: function onCoinBoomFinished() {
        this.node.parent.destroy();
    }
}
// update (dt) {},
);

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=Robot.js.map
        